package com.njupt.controller;

import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.PathVariable;
import org.springframework.web.bind.annotation.RequestMapping;

/**
 * @Author: XJL
 * @Description:
 * @Date: Create in 13:40 2018/5/27
 * @Modified By:
 **/
@Controller
public class PageController {

    /**
     * CMS首页转发
     * @return
     */
    @RequestMapping("/")
    public String showIndex(){
        return "index";
    }

    /**
     * CMS页面转发
     * @param page
     * @return
     */
    @RequestMapping("/{page}")
    public String showPage(@PathVariable String page){
        return page;
    }

    @RequestMapping("/rest/page/item-edit")
    public String showPageEdit(){
        return "item-edit";
    }
}
